class ReactCrudPlugin {
    constructor(staticPath) {
        this.staticPath=staticPath;
    }

    install(app,args){

        app.use(["/index.html","/controler.js","/App.jsx","/index.jsx"],async (req,res)=>{
            res.renderUrl(this.staticPath+req.url)
        })
    }

}

module.exports = ReactCrudPlugin;

